#@layout()
#define title()
信件查询
#end
#define main()
<div class="table_box">
    <form class="layui-form" method="post" action="">
	    <blockquote class="layui-elem-quote layui-text">
	    <p>按信件编号、查询码（如果是满意度信访件，您可对信访局或者职能单位进行评价）</p>
	    </blockquote>
    
        <div class="layui-form-item">
		    <div class="layui-inline">
		      <label class="layui-form-label">信件编号</label>
		      <div class="layui-input-inline">
		        <input name="xfjbh" value="#(xfjbh)" lay-verify="required" placeholder="信件编号" autocomplete="off" class="layui-input" type="text">
		      </div>
		    </div>
		    <div class="layui-inline">
		      <label class="layui-form-label">查询码</label>
		      <div class="layui-input-inline">
		        <input name="cxm" value="#(cxm)" lay-verify="required" placeholder="查询码" autocomplete="off" class="layui-input" type="text">
		      </div>
		    </div>
		    <div class="layui-inline">
              <button class="layui-btn" lay-submit="" lay-filter="subbtn">查询</button>
            </div>
		</div>

    </form>
    
    <table class="layui-table" lay-skin="row" lay-size="lg">
      <colgroup>
		<col width="210">
		<col>
		<col width="150">
		<col width="150">
	  </colgroup>
	  <thead>
	    <tr>
	      <th>信访件编号</th>
	      <th>内容说明</th>
	      <th>写信时间</th>
	      <th>查看</th>
	    </tr> 
	  </thead>
	  <tbody>
	    #if(lett != null)
        <tr>
          <td>#(lett.fCentralId)</td>
          <td>#(lett.tsnr)</td>
          <td>#date(lett.xfrq, "yyyy-MM-dd HH:mm:ss")</td>
          <td>#(lett.hcqk)</td>
        </tr>
        #else
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        #end
	    
	  </tbody>
	</table>
    
    <script type="text/javascript" src="#(ctx)/layui/layui.js" charset="utf-8"></script>
    <script>
    layui.use('form', function(){
        var form = layui.form;
        form.on("submit(subbtn)", function(data){
        
        });
    });
    layui.use('table', function(){
        var table = layui.table;
            
        table.init('parse-table-demo',{});
    });
</script>
</div>
#end